const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    port:'8888',
    host:'127.0.0.1',
    // open:true
    // 配置代理跨域
    proxy:{
      '/api1':{
        target:"http://gmall-h5-api.atguigu.cn/",
        changeOrigin:true,//伪装端口
        pathRewrite:{
          '^/api1':''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
        alias: {
            "@assets": "@/assets",
            "@comp": "@/components",
            "@pages": "@/pages",
        },
    },
},
})
